# _*_ coding:utf8 _*_

import cv2
import os


if __name__ == '__main__':
    # 获取图像，进行合并
    path_name = './model_image/'
    # 获取列表
    file_path_list = os.listdir(path_name)
    combine_image = cv2.imread(path_name + file_path_list[0])
    temp_image = None
    for i in range(1, len(file_path_list)):
        print(i, file_path_list[i])
        temp_image = cv2.imread(path_name + file_path_list[i])
        combine_image = cv2.hconcat([combine_image, temp_image])

    # cv2.imwrite('./model_image/combine_digit.png', combine_image)
    cv2.imwrite('./model_image/combine_expression.png', combine_image)
